﻿/*
(c) 2010 - Open Source Business Foundation e. V. (www.osbf.de)
This software is provided under Microsoft Reciprocal License (Ms-RL)
(http://www.microsoft.com/opensource/licenses.mspx#Ms-RL)
All other rights reserved
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;

namespace MicroFormatProcessing
{

    /// <summary>
    /// Current DB session 
    /// </summary>
    
    public class Session : Microsoft.WindowsAzure.StorageClient.TableServiceEntity
    {
        public Session() : base()
        {
        }

        public Session(string dayKey, string sessionId) : base(dayKey, sessionId)
        {
        }

        public string UserId { get; set; }
        public DateTime LastRequest { get; set; }

        // aliases

        public string GetDayKey()
        {
            return this.PartitionKey;
        }
        public string GetSessionId()
        {
            return this.RowKey;
        }
    }

}
